﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using BitworkStudios.Scraper;
using BitworkStudios.Scraper.Document;

namespace AllHomesScraper
{
    public partial class Form1 : Form
    {
        private const string DefFile = @"c:\temp\temp.csv";
        List<PropertyDefinition> _list = new List<PropertyDefinition>(); 

        public Form1()
        {
            InitializeComponent();
        }

        private void Button1Click(object sender, EventArgs e)
        {
            var def = new PropertyDefinition(textBox1.Text);
            _list.Add(def);
            _list.SaveToCsv(@"C:\temp\def.csv");
        }
    }
}
